package com.io.dto;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * The class/interface
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
@Data
public class UserReqDTO {
    /**
     * 属性描述：name
     */
    @NotBlank(message = "name[姓名]必填字段")
    @ApiModelProperty(value = "姓名", name = "name", example = "郭冬冬", required = true)
    private String name;

    /**
     * 属性描述：密码
     */
    @NotBlank(message = "password[密码]必填字段")
    @ApiModelProperty(value = "密码", name = "password", example = "123456", required = true)
    private String password;
}